<template>
  <div>
    <Header></Header>
    <div class="university">
      <div class="university_tab">
        <div class="university_content">
          <div class="tab-card" style="display: block;">
            <div class="university_banner">
              <img src="../../assets/images/banner1.png" alt>
              <div class="university_news">
                <p>讨教专注于知识共享</p>
                <p>分享你的见解与知识</p>
              </div>
            </div>
            <div class="university_news">
              <h3>讨教专注于知识共享</h3>
              <p>分享你的见解与知识</p>
            </div>
            <div class="university_box">
              <div class="box">
                <div class="box_h">
                  <h1>思维导图训练营</h1>
                  <p>专为大学生，职场新人打造的PM入行培训</p>
                </div>
                <div class="box_f">
                  <div class="h">
                    <h1>学习周期</h1>
                    <p>2天线下闭门培训+1年在线学习</p>
                  </div>
                  <div class="f">
                    <h1>开课城市</h1>
                    <p>北京/上海/深圳/武汉/杭州</p>
                  </div>
                </div>
              </div>
              <div class="box">
                <div class="box_h">
                  <h1>思维导图训练营</h1>
                  <p>专为大学生，职场新人打造的PM入行培训</p>
                </div>
                <div class="box_f">
                  <div class="h">
                    <h1>学习周期</h1>
                    <p>2天线下闭门培训+1年在线学习</p>
                  </div>
                  <div class="f">
                    <h1>开课城市</h1>
                    <p>北京/上海/深圳/武汉/杭州</p>
                  </div>
                </div>
              </div>
              <div class="box">
                <div class="box_h">
                  <h1>思维导图训练营</h1>
                  <p>专为大学生，职场新人打造的PM入行培训</p>
                </div>
                <div class="box_f">
                  <div class="h">
                    <h1>学习周期</h1>
                    <p>2天线下闭门培训+1年在线学习</p>
                  </div>
                  <div class="f">
                    <h1>开课城市</h1>
                    <p>北京/上海/深圳/武汉/杭州</p>
                  </div>
                </div>
              </div>
              <div class="box">
                <div class="box_h">
                  <h1>思维导图训练营</h1>
                  <p>专为大学生，职场新人打造的PM入行培训</p>
                </div>
                <div class="box_f">
                  <div class="h">
                    <h1>学习周期</h1>
                    <p>2天线下闭门培训+1年在线学习</p>
                  </div>
                  <div class="f">
                    <h1>开课城市</h1>
                    <p>北京/上海/深圳/武汉/杭州</p>
                  </div>
                </div>
              </div>
              <div class="box">
                <div class="box_h">
                  <h1>思维导图训练营</h1>
                  <p>专为大学生，职场新人打造的PM入行培训</p>
                </div>
                <div class="box_f">
                  <div class="h">
                    <h1>学习周期</h1>
                    <p>2天线下闭门培训+1年在线学习</p>
                  </div>
                  <div class="f">
                    <h1>开课城市</h1>
                    <p>北京/上海/深圳/武汉/杭州</p>
                  </div>
                </div>
              </div>
              <div class="box">
                <div class="box_h">
                  <h1>思维导图训练营</h1>
                  <p>专为大学生，职场新人打造的PM入行培训</p>
                </div>
                <div class="box_f">
                  <div class="h">
                    <h1>学习周期</h1>
                    <p>2天线下闭门培训+1年在线学习</p>
                  </div>
                  <div class="f">
                    <h1>开课城市</h1>
                    <p>北京/上海/深圳/武汉/杭州</p>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <!-- <div class="tab-card">2</div>
          <div class="tab-card">3</div>
          <div class="tab-card">4</div>
          <div class="tab-card">5</div>
          <div class="tab-card">6</div>
          <div class="tab-card">7</div> -->
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import Header from "@/common/Header/Header";
export default {
  name: "university",
  data() {
    return {
    //   tabsName: [
    //     {
    //       name: "思维导图课程",
    //       isActive: true
    //     },
    //     {
    //       name: "项目管理课程",
    //       isActive: false
    //     },
    //     {
    //       name: "时间管理课程",
    //       isActive: false
    //     },
    //     {
    //       name: "Sigma课程",
    //       isActive: false
    //     },
    //     {
    //       name: "职场规划课程",
    //       isActive: false
    //     },
    //     {
    //       name: "企业内训",
    //       isActive: false
    //     },
    //     {
    //       name: "工业视觉",
    //       isActive: false
    //     }
    //   ],
    //   active: false
    };
  },
  methods: {
    // tabsSwitch: function(tabIndex) {
    //   var tabCardCollection = document.querySelectorAll(".tab-card"),
    //     len = tabCardCollection.length;
    //   for (var i = 0; i < len; i++) {
    //     tabCardCollection[i].style.display = "none";
    //     this.tabsName[i].isActive = false;
    //   }
    //   this.tabsName[tabIndex].isActive = true;
    //   tabCardCollection[tabIndex].style.display = "block";
    // },
    // goHome(){
    //   this.$router.push('/')
    // }
  },
  components: {
    Header
  }
};
</script>
<style lang="scss" scoped>
.university {
  width: 100%;
  height: auto;
  margin-top: -80px;
  .university_tab {
    width: 100%;
    .container {
      width: 1200px;
      display: flex;
      justify-content: space-around;
      align-items: center;
      .university_logo {
        width: 60px;
        height: 60px;
        margin-right: -100px;
        img {
          display: block;
          width: 80%;
          height: 80%;
          margin-top: 10%;
        }
      }
      .university_nav {
        width: 750px;
        height: 100px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        li {
          list-style: none;
          font-size: 16px;
          .tab-link {
            color: #000;
            display: block;
            text-decoration: none;
            &:hover {
              color: #aed6ff;
            }
          }
        }
      }
    }
    .university_content {
      width: 100%;
      margin-top: 20px;
      .tab-card {
        display: none;
        margin-top: -45px;
        .university_banner {
          width: 100%;
          height: 420px;
          position: relative;
          font-weight: 700;
          margin-top: 155px;
          .university_news{
            position:absolute;
            top: 50%;
            left:16%;
            transform: translateY(-50%);
            P{
              color:#FFF;
              font-size: 28px;
              line-height: 0.5;
            }
          }
          img {
            display: block;
            width: 100%;
            height: 420px;
          }
        }
        .university_news {
          font-size: 24px;
          width: 1080px;
          height: 123px;
          margin: 0 auto;
          text-align: center;
          line-height: 50px;
          letter-spacing: 2px;
          padding-top: 30px;
          margin-bottom: 30px;
          h3 {
            font-size: 32px;
            margin: 0;
            line-height: 1.8;
          }
          p {
            font-size: 20px;
            color: rgba(0, 0, 0, 0.44);
            line-height: 1.8;
            margin: 0 0 50px;
          }
        }
        .university_box {
          width: 1080px;
          margin: 0 auto;
          height: auto;
          display: flex;
          flex-wrap: wrap;
          .box {
            width: 30%;
            height: 250px;
            background-color: #fff;
            border-radius: 10px;
            box-shadow: 0px 0px 10px #888888;
            margin-right: 5%;
            margin-bottom: 20px;
            &:hover {
              -moz-transition: all 0.5s linear 0.3s;
              -webkit-transition: all 0.5s linear 0.3s;
              -o-transition: all 0.5s linear 0.3s;
              -ms-transition: all 0.5s linear 0.3s;
              transition: all 0.5s linear 0.3s;
              -moz-transform: translateY(-10px);
              -webkit-transform: translateY(-10px);
              -o-transform: translateY(-10px);
              transform: translateY(-10px);
            }
            .box_h {
              width: 100%;
              height: 100px;
              background-color: #5b90bc;
              text-align: left;
              padding: 0 30px;
              border-radius: 10px 10px 0px 0px;
              h1 {
                color: #fff;
                height: 40px;
                font-size: 24px;
                line-height: 70px;
              }
              p {
                color: #fff;
                height: 60px;
                line-height: 50px;
                font-size: 14px;
              }
            }
            .box_f {
              background: #fff;
              height: 150px;
              width: 100%;
              border-radius: 0px 0px 10px 10px;
              .h {
                width: 100%;
                height: 70px;
                text-align: left;
                padding: 0 30px;
                h1 {
                  color: #5b90bc;
                  font-size: 10px;
                  height: 40px;
                  line-height: 50px;
                }
                p {
                  color: #333;
                  font-size: 10px;
                  height: 30px;
                  line-height: 0px;
                }
              }
              .f {
                width: 100%;
                height: 70px;
                text-align: left;
                padding: 0 30px;
                margin-top: -20px;
                h1 {
                  color: #5b90bc;
                  font-size: 10px;
                  height: 40px;
                  line-height: 50px;
                }
                p {
                  color: #333;
                  font-size: 10px;
                  height: 30px;
                  line-height: 0px;
                }
              }
            }
          }
        }
      }
    }
  }
}
.university_box .box:nth-child(3n + 3) {
  margin-right: 0px !important;
}
</style>


